<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menuAplicacionParametro.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ListTbltipoconceptosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form id="form">

                <h:outputText escape="false" value="#{bundle.ListTbltipoconceptosEmpty}" rendered="#{tbltipoconceptosController.items.rowCount == 0}"/>
                <p:panel  id="panel" rendered="#{tbltipoconceptosController.items.rowCount > 0}" header="#{bundle.ListTbltipoconceptosTitle}"  style="panel">
                    <p:messages id="msgs"/> 
                    <p:dataTable value="#{tbltipoconceptosController.items}" var="item" paginator="true" rows="10">
                        <p:column sortBy="#{item.codConcepto}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTbltipoconceptosTitle_codConcepto}"/>
                            </f:facet>
                            <h:outputText value="#{item.codConcepto}"/>
                        </p:column>
                        <p:column sortBy="#{item.nomConcepto}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTbltipoconceptosTitle_nomConcepto}"/>
                            </f:facet>
                            <h:outputText value="#{item.nomConcepto}"/>
                        </p:column>
                        <p:column sortBy="#{item.tblconceptos}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTbltipoconceptosTitle_tblconceptos}"/>
                            </f:facet>
                            <h:outputText value="#{item.tblconceptos}"/>
                        </p:column>
                        <p:column sortBy="#{item.codCompania}">
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListTbltipoconceptosTitle_codCompania}"/>
                            </f:facet>
                            <h:outputText value="#{item.codCompania}"/>
                        </p:column>
                       
                        <p:column>
                            <p:commandButton action="#{tbltipoconceptosController.prepareEdit}" value="#{bundle.ListTbltipoconceptosEditLink}"/>
                           
                            <p:commandButton action="#{tbltipoconceptosController.destroy}" update=":form" value="#{bundle.ListTbltipoconceptosDestroyLink}"/>
                        </p:column>
                    </p:dataTable>
                    </p:panel>
                <p:commandButton action="#{tbltipoconceptosController.prepareCreate}" value="#{bundle.ListTbltipoconceptosCreateLink}"/>
                 
            </h:form>
        </ui:define>
    </ui:composition>

</html>
